﻿using Flatland.GeneticProgramming.CoreTypes;
using Flatland.GeneticProgramming.SyntaxTree;

namespace Flatland.GeneticProgramming.Initializations {
    class GrowInitialization : IInitialization{
        FullInitialization fi = new FullInitialization();
        /// <summary>
        /// Build a tree using the grow method
        /// </summary>
        /// <param name="maxDepth"></param>
        /// <param name="primitiveSet"></param>
        /// <returns></returns>
        public Tree Init(uint maxDepth, PrimitiveSet primitiveSet){
            return fi.Init(maxDepth, primitiveSet, true);
        }
    }
}
